package hibernate2;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "student")
@Entity
public class Student {
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public int getStudentstatus_id() {
		return studentstatus_id;
	}

	public void setStudentstatus_id(int studentstatus_id) {
		this.studentstatus_id = studentstatus_id;
	}

	public int getAccomodation_id() {
		return accomodation_id;
	}

	public void setAccomodation_id(int accomodation_id) {
		this.accomodation_id = accomodation_id;
	}

	public int getCourse_choice_id() {
		return course_choice_id;
	}

	public void setCourse_choice_id(int course_choice_id) {
		this.course_choice_id = course_choice_id;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", firstname=" + firstname + ", lastname=" + lastname + ", phone=" + phone
				+ ", email=" + email + ", gender=" + gender + ", age=" + age + ", studentstatus_id=" + studentstatus_id
				+ ", accomodation_id=" + accomodation_id + ", course_choice_id=" + course_choice_id + "]";
	}

	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "firstname")
	private String firstname;
	@Column(name = "lastname")
	private String lastname;
	@Column(name = "phone")
	private String phone;
	@Column(name = "email")
	private String email;
	@Column(name = "gender")
	private String gender;
	@Column(name = "age")
	private String age;
	@Column(name = "studentstatus_id")
	private int studentstatus_id;
	@Column(name = "accomodation_id")
	private int accomodation_id;
	@Column(name = "course_choice_id")
	private int course_choice_id;

}
